@import './var.css';
@import 'element-plus/theme-chalk/dark/css-vars.css';

.reset-margin [class*='el-icon'] + span {
  margin-left: 2px !important;
}

// 解决抽屉弹出时，body宽度变化的问题
.el-popup-parent--hidden {
  width: 100% !important;
}

// 解决表格内容超过表格总宽度后，横向滚动条前端顶不到表格边缘的问题
.el-scrollbar__bar {
  display: flex;
  justify-content: flex-start;
}

// 解决 element-plus button 全局失去焦点时 颜色变暗问题
.el-button.el-button--primary.is-link:not(.is-disabled):focus,
.el-button.el-button--primary.is-link:not(.is-disabled):hover {
  color: var(--el-color-primary);
}

.el-button.el-button--warning.is-link:not(.is-disabled):focus,
.el-button.el-button--warning.is-link:not(.is-disabled):hover {
  color: var(--el-color-warning);
}

.el-button.el-button--success.is-link:not(.is-disabled):focus,
.el-button.el-button--success.is-link:not(.is-disabled):hover {
  color: var(--el-color-success);
}

.el-button.el-button--info.is-link:not(.is-disabled):focus,
.el-button.el-button--info.is-link:not(.is-disabled):hover {
  color: var(--el-color-info);
}

.el-button.el-button--danger.is-link:not(.is-disabled):focus,
.el-button.el-button--danger.is-link:not(.is-disabled):hover {
  color: var(--el-color-danger);
}

// 解决element中时间选择框宽度与其他组件box不一致问题
.el-range-editor.el-input__wrapper {
  box-sizing: border-box;
}

/* nprogress 适配 element-plus 的主题色 */
#nprogress {
  & .bar {
    background-color: var(--el-color-primary) !important;
  }

  & .peg {
    box-shadow:
      0 0 10px var(--el-color-primary),
      0 0 5px var(--el-color-primary) !important;
  }

  & .spinner-icon {
    border-top-color: var(--el-color-primary);
    border-left-color: var(--el-color-primary);
  }
}

/**
 详情弹窗 disabled应用样式
*/
.system-form-disabled {
  [class*='is-disabled'] {
    &,
    > div,
    > span {
      background-color: unset !important;
      color: #000 !important;
    }
  }
}

.collapse-definition-bg> button.el-collapse-item__header {
  background: #f0f9eb;
  border: 1px solid green;
  color: #67c23a;
  border-radius:4px;
  line-height: 30px;
  height: 30px;
  padding-left: 15px;
  margin-bottom: 15px;
}
.collapse-definition-bg> .el-collapse-item__content {
  padding-bottom: 0px;
}

.inner-tabs{
  background: #f2f2f2;
}

.inner-tabs> .el-tabs__nav {
  // margin-left: 50px;
}
.inner-tabs>.el-tabs__header {
    width: 90%;
    margin: 0 auto;
}

.inner-tab-item{
    width: 90%;
    margin: 0 auto;
    margin-top: 15px;
}
